#ifndef _BOOST_SHAREDLOCK_H_
#define _BOOST_SHAREDLOCK_H_

#include <boost_def.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/shared_mutex.hpp>

typedef boost::shared_mutex CSharedLock;

#define SYNC_GET(x)  boost::shared_lock<CSharedLock> _sync_get(*x);
#define SYNC_SET(x)  boost::unique_lock<CSharedLock> _sync_set(*x);
 
#endif

